﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="AdminOrders.aspx.cs" Inherits="EHTWebsiteProject.Administrator.AdminOrders" %>
<%@ Register src="../Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
   <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-user.png" /></td>
                <td><asp:Label ID="lbOrder" runat="server" Text="Quản lý Orders" ></asp:Label></td>
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                
                <td valign="middle">
                    <asp:HyperLink ID="hlOrderAppending" NavigateUrl="~/Administrator/AdminOrders.aspx?OrderState=1"
                    runat="server" CssClass="order-type">Bestill Føye</asp:HyperLink>                  
                </td>
                <td valign="middle">
                    <asp:HyperLink ID="hlOrderShipping" NavigateUrl="~/Administrator/AdminOrders.aspx?OrderState=2"
                    runat="server" CssClass="order-type">Bestill Skipsfart</asp:HyperLink> 
                </td>                                             
                <td valign="middle">
                    <asp:HyperLink ID="hlOrderSuccess" NavigateUrl="~/Administrator/AdminOrders.aspx?OrderState=3"
                    runat="server" CssClass="order-type">Bestill sendt</asp:HyperLink> 
                </td>

                <td valign="middle">
                   <asp:HyperLink ID="hlOrderAll" NavigateUrl="~/Administrator/AdminOrders.aspx?OrderState=-1"
                    runat="server" CssClass="order-type">Alle Bestill</asp:HyperLink> 
                </td>
                 <td valign="middle">
                     <asp:LinkButton ID="lbtExport" CssClass="order-type" runat="server" 
                         onclick="lbtExport_Click">Export Bestill</asp:LinkButton>                    
                </td>       
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <asp:Repeater ID="rpOrders" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                    <th class="actions edit">
                            NO
                        </th>
                       <%-- <th class="actions edit">
                            Check
                        </th>--%>
                        <th class="actions edit">
                            Detalj
                        </th>
                        <th>
                            Kundens navn
                        </th>
                        <th>
                            Adresse
                        </th>
                        <th>
                            By
                        </th>
                        <th>
                            Region
                        </th>
                        <th>
                            Telefon
                        </th>
                        <th>
                           Opprettet dato
                        </th>
                        <th>
                          Krev dato
                        </th>
                        <th>
                            Totalt beløp
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
            <td class="actions edit">
                    <%#Eval("IndexId")%>
                </td>
               <%-- <td class="actions edit">
                    <asp:CheckBox ID="ckCheck" Checked="false" runat="server" />
                </td>--%>
                <td class="actions edit">
                    <a href='AdminOrderDetail.aspx?OrderID=<%#Eval("OrderID")%>'>
                        <img alt="Edit" src="/Styles/Edit.png"></a>
                </td>
                <td>
                    <%#Eval("ReceivedName")%>
                </td>
                <td>
                    <%#Eval("ReceivedAddress")%>
                </td>
                <td>
                    <%#Eval("ReceivedCity")%>
                </td>
                <td>
                    <%#Eval("RegionName")%>
                </td>
                <td>
                    <%#Eval("ReceicedPhone")%>
                </td>
                <td>
                    <%#Eval("CreatedDate")%>
                </td>
                <td>
                  <%#Eval("RequireDate")%>
                </td>
                <td>
                    <%#Eval("TotalAmount")%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
  <div style="padding:5px; text-align:center">
    
      <uc1:PaggingControl ID="PaggingControl1" PageSize="20" PageURL="AdminOrders.aspx" runat="server" />
    
  </div>
</asp:Content>
